<?php $this->headStyle()->captureStart() ?>

<?php $this->headStyle()->captureEnd() ?>

<div class="prepend-top append-top">
    <div class="clearfix">
        <form method="get" name="mainForm" action="<?php echo $this->url(array('module'=>'admin', 'controller'=>'user', 'action'=>'search'),'default',true) ?>">
        <div class="clearfix">
            <div class="column span-3">
                <span class="right"><?php echo $this->translate("Username");?>: </span>
            </div>
            <div class="column">
                <div class=""><input type="text" id="username" name="username" value="<?php echo $this->escape($this->username);?>" class="text ui-widget-content ui-corner-all"><input type="submit" name="submit" id="submit" value="<?php echo $this->translate("Submit");?>"></div>
                <div class="" id="usernameTip"><?php echo $this->translate("Please enter a username.");?></div>
            </div>
        </div>
        </form>

        <form method="get" name="mainForm" action="<?php echo $this->url(array('module'=>'admin', 'controller'=>'user', 'action'=>'search'),'default',true) ?>">
        <div class="clearfix prepend-top">
            <div class="column span-3">
                <span class="right"><?php echo $this->translate("Domain");?>:</span>
            </div>
            <div class="column">
                <div class=""><input type="text" id="domain" name="domain" value="<?php echo $this->escape($this->domain);?>" class="text ui-widget-content ui-corner-all"><input type="submit" name="submit" id="submit" value="<?php echo $this->translate("Submit");?>"></div>
                <div class="" id="domainTip"><?php echo $this->translate("Please enter a domain.");?></div>
            </div>
        </div>
        </form>
    </div>
</div>
<div class="prepend-top append-top"><p></p></div>
<hr>
<div class="prepend-top">
    <table cellpadding="0" width="100%" cellspacing="0" border="0" class="display tableA" id="userList"> 
    <thead> 
        <tr> 
            <th width="6%"><?php echo $this->translate("User id");?></th> 
            <th width="10%"><?php echo $this->translate("Username");?></th> 
            <th width="18%"><?php echo $this->translate("Email");?></th> 
            <th width="10%"><?php echo $this->translate("Nickname");?></th> 
            <th width="20%"></th> 
        </tr> 
    </thead> 
    <tbody> 
        <?php if(is_array($this->users)):?>
        <?php foreach ($this->users as $user):?>
        <tr> 
            <td><?php echo $user->userId;?></td> 
            <td><?php echo $user->account->username;?></td> 
            <td><?php echo $user->account->email;?></td> 
            <td><?php echo $user->nickname;?></td> 
            <td>
                <div class="link">
                    <span class="marginRight10">
                        <a href="<?php echo $this->url(array('module'=>'admin', 'controller'=>'user', 'action'=>'show-user-password-form', 'user-id'=>$user->userId), "default", true); ?>"><?php echo $this->translate("Change password");?></a>
                    </span>
                    <span class="marginRight10">
                        <a href="<?php echo $this->url(array('module'=>'admin', 'controller'=>'user', 'action'=>'show-user-email-form', 'user-id'=>$user->userId), "default", true); ?>"><?php echo $this->translate("Change email");?></a>
                    </span>
                    <span class="marginRight10">
                        <a href="<?php echo $this->url(array('module'=>'admin', 'controller'=>'user', 'action'=>'show-user-form', 'user-id'=>$user->userId), "default", true); ?>"><?php echo $this->translate("Edit");?></a>
                    </span>
                </div>
            </td>
        </tr> 
        <?php endforeach;?>
        <?php endif;?>
    </tbody>
    </table>
    <div class="doudang-pager">
    <?php if($this->paginator){ echo $this->paginationControl($this->paginator, 'Elastic', 'script_pagelist.phtml', array('requestParams' => $this->requestParams)); }?>
    </div>
</div>

